package com.lemon.core.base.constant;

import lombok.experimental.UtilityClass;

/**
 * 全局常量
 *
 * @author pan
 * @since 2017-12-11
 */
@UtilityClass
public class GlobalConstants {

    /**
     * 正常状态标识
     */
    public static final Integer STATUS_ENABLE = 1;
    /**
     * 停用状态标识
     */
    public static final Integer STATUS_DISABLE = 0;

    /**
     * 根角色编码
     */
    public static final String ROOT_ROLE_CODE = "ROOT";

    /**
     * 微服务之间传递的唯一标识
     */
    public static final String CLOUD_TRACE_ID = "trace_id";

    /**
     * 日志链路追踪id日志标志
     */
    public static final String LOG_TRACE_ID = "traceId";

    /**
     * Java默认临时目录
     */
    public static final String JAVA_TEMP_DIR = "java.io.tmpdir";

    /**
     * 版本
     */
    public static final String VERSION = "version";

    /**
     * 默认版本号
     */
    public static final String DEFAULT_VERSION = "v1";

    /**
     * long类型0
     */
    public static final long NUMBER_ZERO_LONG = 0L;
    /**
     * int类型0
     */
    public static final int NUMBER_ZERO_INT = 0;

    /**
     * long类型1
     */
    public static final long NUMBER_ONE_LONG = 1L;
    /**
     * int类型1
     */
    public static final int NUMBER_ONE_INT = 1;

}
